-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push new updates #93
Merged
Merged
Push new updates #93
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Refactor credentials encription
… use Plugin interface for better organization and extensibility feat(commands): add Plugin interface with name, keyword, description, execute properties feat(commands): refactor clear command to use Plugin interface and improve code structure feat(commands): refactor exit command to use Plugin interface and enhance code readability feat(commands): refactor file command to use Plugin interface and improve modularity feat(commands): refactor fileTree command to use Plugin interface for consistency feat(commands): refactor index file to load plugins dynamically for better scalability feat(commands): refactor web command to use Plugin interface and enhance code structure feat(context): remove debug logs from context functions for cleaner code feat(engine): add hasContext property to AiEngineConfig for context handling feat(engine): update Engine class to handle hasContext property in engine options feat(engine): update generateResponse function to include hasContext parameter for context-aware responses refactor(anthropic.ts): add optional parameter 'hasContext' with default value false to control adding context based on the flag refactor(webHandler.ts): update console log message for clarity refactor(index.ts): add new function 'determinePlugins' to handle plugin determination logic, refactor plugin execution flow to use the new function and improve error handling refactor(utils.ts): add new function 'promptCerebro' to handle prompt response for Cerebro engine, improve error handling in 'promptResponse'
…dex.ts feat(commands): implement loading and handling of plugins in index.ts to enhance modularity and extensibility feat(commands): add list.ts and scrapper.ts plugins to provide listing and web scraping functionalities feat(engine): refactor Engine class into a function to create AI engine instances based on engine type feat(engine): add support for different AI engine types in Engine function to improve flexibility feat(engine): update generateResponse function to use Engine function for creating AI engine instances feat(engine): add eslint-disable comment for specific rule in anthropic.ts feat(handlers): update handleWebResearch function to return webContext for better error handling feat(index): refactor determinePlugins function into determinePlugins module for better organization feat(index): update chat command in index.ts to use determinePlugins module for plugin determination docs(intro.ts): update introduction message and usage instructions for TerminalGPT feat(intro.ts): enhance TerminalGPT with plugin support for extended functionality feat(rag/index.ts): add function to determine applicable plugins based on user input refactor(utils.ts): remove unused import of clipboard package
…rt async operations feat(intro.ts): update ASCII art in intro function for better visual presentation feat(rag/index.ts): add functionality to store and retrieve conversation context in determinePlugins function
…ctions to handle context in different engine types feat(anthropic.ts): Remove unnecessary console.log statement feat(gemini.ts): Update GeminiEngine to handle context based on 'hasContext' parameter feat(ollama.ts): Update OllamaEngine to handle context based on 'hasContext' parameter and 'baseURL' parameter feat(openAi.ts): Update OpenAIEngine to handle context based on 'hasContext' parameter
…ommands feat(package.json): add @types/execa to devDependencies for type definitions feat(commands): add new 'update' command to update the package refactor(index.ts): call checkIsLatestVersion function before apiKeyPrompt refactor(utils.ts): add checkIsLatestVersion function to compare package version feat(version.ts): add getTerminalGPTLatestVersion function to fetch latest version refactor(utils.ts): import currentPackage from package.json for version comparison refactor(tsconfig.json): set resolveJsonModule to true for JSON module resolution
Add plugin definer
…ace and createVectorStore function to improve code readability and maintainability
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success12 tests passing in 3 suites. Report generated by 🧪jest coverage report action from 3442e00 |
…dle model data feat(engine): create common functions combineConsecutiveMessages and ensureMessagesAlternate to process and combine messages efficiently feat(utils.ts): add support for selecting a model based on the chosen engine fix(utils.ts): update engine and model choices to have consistent capitalization fix(utils.ts): update apiKeyPrompt function to include model selection and save all credentials
…toring model information feat(webHandler.ts): pass model parameter to saveCredentials function when handling web research refactor(rag/index.ts): improve plugin matching logic and response handling in determinePlugins function
…ajor release and update description to reflect changes made in the new version
feat(README.md): update installation instructions to use correct package name and add usage instructions feat(README.md): add information about providing OpenAI API key on first run docs(README.md): update prerequisites section with correct information and add links to relevant resources feat(README.md): add section for deleting all conversations and using with npx docs(README.md): update contributing section to refer to CONTRIBUTING.md for contribution guidelines feat(README.md): add stats section to display project statistics
…ge to clean up the file and improve readability
refactor(context.ts): convert VectorStore class to VectorStore interf…
…anagement for better data handling feat(utils.spec.ts): add 'model' property check in apiKeyPrompt() test for consistency with credentials management functionality
Unit test renew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.